import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useStaffStore = defineStore(
  'staff',
  () => {
    const staffInfo = ref({})

    const setStaffInfo = (newVal) => {
      staffInfo.value = newVal
    }
    return {
      staffInfo,
      setStaffInfo,
    }
  },
  {
    persist: true,
  },
)
